package com.itlong.cloud.iottp;

import com.itlong.cloud.POJO.VO.app.AppCreateBaiduFaceVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * <desc>
 *      百度人脸接口。
 * <desc/>
 *
 * @createDate 2018/04/24.
 */
@FeignClient(name = "iot-tp-service")
public interface IIotBaiduFaceServiceClient {

    /**
     * <desc>
     *      将百度人脸注册信息放入队列
     * <desc/>
     *
     * @param  appCreateBaiduFaceVO  人脸注册信息
     * @return
     * @author Qiang.S
     * @createDate 2018/04/24
     */
    @RequestMapping(path = "/iotTp/baiduFace/createBaiduFace",method = RequestMethod.POST)
    boolean createBaiduFace(@RequestBody AppCreateBaiduFaceVO appCreateBaiduFaceVO);

    /**
     * <desc>
     *      调用百度活体验证接口判断图片是否合格
     * <desc/>
     *
     * @param  appCreateBaiduFaceVO  人脸注册信息
     * @return
     * @author Qiang.S
     * @createDate 2018/05/21
     */
    @RequestMapping(path = "/iotTp/baiduFace/faceVerify",method = RequestMethod.POST)
    String faceVerify(@RequestBody AppCreateBaiduFaceVO appCreateBaiduFaceVO);

    /**
     * <desc>
     *      调用百度人脸对比接口判断人脸是否重复
     * <desc/>
     *
     * @param  appCreateBaiduFaceVO  人脸注册信息
     * @return
     * @author Qiang.S
     * @createDate 2018/06/07
     */
    @RequestMapping(path = "/iotTp/baiduFace/identifyUser",method = RequestMethod.POST)
    String identifyUser(@RequestBody AppCreateBaiduFaceVO appCreateBaiduFaceVO);

    /**
     * <desc>
     *     百度访客人脸注册
     * </desc>
     *
     * @param appCreateBaiduFaceVO 人脸注册信息
     * @return
     * @author Qiang.S
     * @createDate 2019/03/06
     */
    @RequestMapping(path = "/iotTp/baiduFace/doCreateBaiduFaceForVisitor",method = RequestMethod.POST)
    boolean doCreateBaiduFaceForVisitor(@RequestBody AppCreateBaiduFaceVO appCreateBaiduFaceVO);
}
